/**
 * 
 */
package com.example.demo.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.example.demo.entity.IUser;

/**
 * @author CJunGod 1038804380@qq.com
 *
 */
@Mapper
public interface IUserMapper {

	@Select("select * from iuser where username = #{userName}")
	IUser findByUserName(String userName);
	
	@Insert("insert into iuser (username,password) VALUES (#{userName},#{password})")
	boolean insertIUser(@Param("userName")String userName,@Param("password")String password);
}
